<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span>系统配置</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">用户管理</span>
</nav>
<div class="Hui-article" id="userManage">
    <div>
        <!-- search module start -->
        <div class="row cl  searchBox">
            <form class="form form-horizontal responsive" id="searchForm" novalidate="novalidate">
                <div class="clearfix">
                	<div class="conditionBox col-sm-2">
                        <label for="">所在省:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="province" value="">
                                <option value="">请选择</option>
                                <option value="河北省" readOnly>河北省</option>
                            </select>
                            <input type="hidden" value="" id="h-province">
                        </div>
                    </div>   
                    <div class="conditionBox col-sm-2">
                        <label for="">所在市:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="city" value="">
                                <option value="">请选择</option>
                                <option value="邯郸市" readOnly>邯郸市</option>
                            </select>
                            <input type="hidden" value="" id="h-city">
                        </div>
                    </div>  
                    <div class="conditionBox col-sm-2">
                        <label for="">所在县:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="cty" value="">
                                <option value="">请选择</option>
                                <option value="魏县" readOnly name="cty">魏县</option>
                            </select>
                            <input type="hidden" value="" id="h-cty">
                        </div>
                    </div>  
                    <div class="conditionBox col-sm-2">
                        <label for="">所在乡:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="cry" value="">
                                <option value="">请选择</option>
                            </select>
                            <input type="hidden" value="" name="cry" id="h-cry">
                        </div>
                    </div>  
                    <div class="conditionBox col-sm-2">
                        <label for="">所在村:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1"  id="name">
                                <option value="">请选择</option>
                            </select>
                            <input type="hidden" value="" name="name" id="h-name">
                        </div>
                    </div>   
                    <div class="conditionBox col-sm-2">
                        <label for="">用户账号:</label>
                        <input type="text" class="input-text radius" placeholder="请输入用户账号" name="username" id="username"/>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">真实姓名:</label>
                        <input type="text" class="input-text radius" placeholder="请输入真实姓名" name="realName" id="realName" />
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">联系方式:</label>
                        <input type="text" class="input-text radius" placeholder="请输入联系方式" name="mobilePhone" id="mobilePhone"/>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">邮箱:</label>
                        <input type="text" class="input-text radius" placeholder="请输入邮箱" name="email" id="email" />
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">审核状态:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="checkState" name="checkState" value="">
                                <option value="">请选择</option>
                                <option value="未审核" readOnly>未审核</option>
                                <option value="已审核" readOnly>已审核</option>
                                <option value="审核不通过" readOnly>审核不通过</option>
                            </select>
                            <input type="hidden" value="" id="h-checkState">
                        </div>
                    </div>
                </div>

                <div class="clearfix search-btns  margin-padding-none btn-div">
                    <input type="button" class="btn btn-primary queryBtn btn btn-secondary" value="查 询"/>
                    <input class="btn btn-secondary add_btn save_from" type="button" value="新增">
                </div>
            </form>
        </div>
        <!-- search module end -->
    </div>
    <div class="table-scroll3">
        <table class="table table-border table-bordered">
            <thead class="text-c row cl table-bgcolor-gary" id="thead">
                <tr>
            		<th>序号</th>
                    <th>用户名</th>
                    <th>角色</th>
                    <th>角色等级</th>
                    <th>所属地区</th>
                    <th>真实名字</th>
                    <th>联系方式</th>
                    <th>邮箱</th>
                    <th>状态</th>
                    <th>备注</th>
                    <th>审核状态</th>
                    <th width="250">操作</th>
                </tr>
            </thead>
            <tbody class="text-c row cl" id="tbody"></tbody>
        </table>
    </div>
    <div class="page pt-10 clearfix">
        <div class="f-l" style="white-space: nowrap;" id="pageContainer"></div>
        <div class="f-r" id="pageBtn">
            <input type="button" value="首页" class="page-btn" id="firstPage">
            <input type="button" value="上一页" class="page-btn" id="prevPage">
            <input type="button" value="下一页" class="page-btn" id="nextPage">
            <input type="button" value="尾页" class="page-btn" id="lastPage">
        </div>
    </div>
</div>
<script id="userList" type="text/x-handlebars-template">
\{{#each resultList}}
<tr>
    <td>\{{Math @index '+' '1'}}</td>
    <td>\{{username}}</td>
    <td>\{{roles.0.description}}</td>
    <td>\{{userLevel.name}}</td>
    <td>\{{area.area}}</td>

    <td>\{{realName}}</td>
    <td>\{{mobilePhone}}</td>
    <td>\{{email}}</td>
    <td>
    	\{{#mccmsShowIfEqual status '1'}}启用\{{/mccmsShowIfEqual}}
        \{{#mccmsShowIfEqual status '0'}}停用\{{/mccmsShowIfEqual}}
    </td>
    <td class="remarks">\{{remarks}}</td>
    <td>\{{checkState}}</td>
    <td width="250" id="\{{id}}">
        <button type="button" class="btn btn-secondary size-S radius detail_btn save_from">查看</button>
        <button type="button" class="btn btn-secondary size-S radius edit_btn save_from">编辑</button>
        <button type="button" class="btn btn-secondary size-S radius password_btn" data-name="\{{username}}">重置密码</button>
        <button type="button" class="btn btn-danger size-S radius del_btn">删除</button>
    </td>
</tr>
\{{/each}}
</script>
<!-- 分页 start -->
<script id="page" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="ipt2">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="ipt2">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>
<!-- 分页 end -->
<script>
    new userManage();
</script>
